<template>
  <div class="department-container">
    <div class="app-container">
      <el-card>
        <!-- 具体页面结构 -->
        考勤管理
        <button @click="click">点我访问abc</button>
      </el-card>
    </div>
  </div>
</template>

<script>
export default {
  methods: {
    click() {
      this.$router.addRoutes([
        {
          path: '/abc',
          // 路由懒加载，只要访问到这个组件，才会去加载
          component: () => import('@/views/abc/abc'),
          hidden: true // 为true不会在菜单栏展示
        }
      ])
    }
  }
}
</script>
